<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../commons/taglibs.jsp"%>
<style>
.pf-row {
	margin-bottom: 5px;
}

.pf-row  label {
	display: inline-block;
	width: 30%;
	text-align: right;
}
</style>
<div class="modal fade" data-backdrop="static" id="pf-add-adv-modal">
    <div class="modal-dialog ">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"></button>
                <h3 id="pf-modal-title">添加</h3>
            </div>
            <div class="modal-body">
                <form id="pf-adv-save-form" action="/manage/adv/save" method="post" enctype="multipart/form-data">
                    <input type="hidden" class="form-control" placeholder="id" name="id" value="${advEntity.id}" id="id" />
                    <div class="pf-row">
                        <label> <span class="red">*</span> 广告位：
                        </label> <input type="text" class="form-control" style="display: inline-block; width: 40%" placeholder="广告位" name="title" value="${advEntity.title}" />
                    </div>
                    <div class="pf-row">
                        <label> <span class="red">*</span> 广告类型：
                        </label>
                        <select id="pf-adv-from" class="form-control" style="display: inline-block; width: 20%" name="from">
                            <option value="text">文字广告</option>
                            <option value="photo">图片广告</option>
                            <option value="product">产品广告</option>
                            <option value="flash">Flash广告</option>
                            <option value="lunzhuan">轮转广告</option>
                        </select>
                    </div>
                    <div class="pf-row">
                        <label> <span class="red">*</span> 最大数量：
                        </label> <input type="text" class="form-control" style="display: inline-block; width: 20%" placeholder="最大数量" name="limit" value="${advEntity.limit}" /> 每个城市最大数量
                    </div>
                    <div class="pf-row">
                        <label> <span class="red">*</span> 排序：
                        </label> <input type="text" class="form-control" style="display: inline-block; width: 20%" placeholder="排序" name="orderby" value="${advEntity.orderby}" />
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn">关闭</button>
                <button type="button" class="btn btn-primary pf-submit" id="pf-submit">提交</button>
            </div>
        </div>
    </div>
</div>
